param(
	[string]$computername
)
try {
	$ping = New-Object System.Net.NetworkInformation.Ping
	$result = $ping.Send($computername) 
	if($result.Status -eq "Success") {
		1
	}
} catch {
	Write-Error $_
}
0
